package com.example.library_demo.service;

import com.example.library_demo.dto.circulation.LendBookDTO;
import com.example.library_demo.dto.circulation.MyBorrowDTO;
import com.example.library_demo.dto.circulation.ReturnBookDTO;
import com.example.library_demo.entity.Circulation;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Eric
 * @since 2024-11-27
 */
public interface ICirculationService extends IService<Circulation> {

    List<MyBorrowDTO> myBorrowList(Long userId);

    Boolean lendBooks(Long userId,LendBookDTO lendBookDTO);

    BigDecimal returnBooks(Long userId, ReturnBookDTO lendBookDTO);
}
